#读取为字典
import csv
with open("user.csv","r",encoding="utf-8") as f:
    reader = csv.DictReader(f)
    #读取字典，会自动将第一行作为标题
    for row in reader:
        print(row)